Q bookmarklet Class
Makes an infomation block for adding a bookmarklet on the browser's bookmarks bar the way similar to how facebook does: http://www.facebook.com/share_options.php . The main purpose of the tool is to present, in a cross-browser way, user-friendly instructions on how to add bookmarklet in the browser.
Constructor
Q bookmarklet
-
options
Parameters:
-
options
ObjectThis is an object with properties for this function
-
title
StringTitle for the button which will be added to user's browser bar.
-
usage
StringText which is appended to instructions, identifying purpose and usage of this bookmarklet.
-
[scripts]
Array optionalArray of one or more script urls (will be run through Q.url()) to load and execute in order
-
[skip]
Array optionalArray of "path.to.object" strings corresponding to options.scripts array, to avoid loading the corresponding script if path.to.object is already defined. Typically names an object which has been defined by the loaded script. Pass nulls in the array for urls you shouldn't skip.
-
[code]
String optionalLiteral Javascript code to execute, typically a function call. If scripts option is provided, this code is executed after the scripts have been loaded.
-
[icon]
String optionalIcon for the button which will be added to user's browser bar.
-